execute if block ~ ~ ~-1 green_concrete run tag @e[tag=sc,limit=1] add CaWStPCSTemp
execute if block ~ ~ ~-1 red_concrete run setblock ~ ~ ~-1 green_concrete
execute if entity @e[tag=sc,limit=1,tag=CaWStPCSTemp] run setblock ~ ~ ~-1 red_concrete
tag @e remove CaWStPCSTemp